/*
Copyright (c)2006-2007 - Brett Lajzer

See LICENSE for license information.
*/

#include <math.h>
#include <lua.h>
#include <esdl/SDL.h>
#include "globals.h"
#include "funcs_draw.h"

//
// direct drawing functions
//

//internal function for drawing circles and ellipses
void drawCircle(int style, float x, float y, float rx, float ry, float r, float g, float b, float a, float rot, float scale_x, float scale_y){
	//return 0;
}

int l_draw_pixel(lua_State *L){	

	return 0;
}

int l_draw_line(lua_State *L){
	float x1 = (float)lua_tonumber(L,1);
	float y1 = (float)lua_tonumber(L,2);
	float x2 = (float)lua_tonumber(L,3);
	float y2 = (float)lua_tonumber(L,4);
	  
	return 0;
}

int l_draw_rect(lua_State *L){
	float x1 = (float)lua_tonumber(L,1);
	float y1 = (float)lua_tonumber(L,2);
	float x2 = (float)lua_tonumber(L,3);
	float y2 = (float)lua_tonumber(L,4);
	float rot = (float)lua_tonumber(L,9);
	float scale_x = (float)lua_tonumber(L,10);
	float scale_y = (float)lua_tonumber(L,11);
	return 0;
}

int l_draw_frect(lua_State *L){
	float x1 = (float)lua_tonumber(L,1);
	float y1 = (float)lua_tonumber(L,2);
	float x2 = (float)lua_tonumber(L,3);
	float y2 = (float)lua_tonumber(L,4);
	float rot = (float)lua_tonumber(L,9);
	float scale_x = (float)lua_tonumber(L,10);
	float scale_y = (float)lua_tonumber(L,11);

   
	return 0;
}

int l_draw_circle(lua_State *L){	
    drawCircle( 0, (float)lua_tonumber(L,1), (float)lua_tonumber(L,2), (float)lua_tonumber(L,3), (float)lua_tonumber(L,3), lua_tonumber(L,4)/255.0, lua_tonumber(L,5)/255.0, lua_tonumber(L,6)/255.0, lua_tonumber(L,7)/255.0, (float)lua_tonumber(L,8), (float)lua_tonumber(L,9), (float)lua_tonumber(L,10));
	return 0;
}

int l_draw_ellipse(lua_State *L){
	drawCircle( 1, (float)lua_tonumber(L,1), (float)lua_tonumber(L,2), (float)lua_tonumber(L,3), (float)lua_tonumber(L,4), lua_tonumber(L,5)/255.0, lua_tonumber(L,6)/255.0, lua_tonumber(L,7)/255.0, lua_tonumber(L,8)/255.0, (float)lua_tonumber(L,9),(float)lua_tonumber(L,10), (float)lua_tonumber(L,11));
	return 0;
}

